export interface ILoginForm {
  username: string
  password: string
}

interface IDateType {
  token?: string
  message?: string
}
//登录接口返回数据类型
export interface ILoginResponse {
  code: number
  data: IDateType
}

interface IUserInfo {
  userId: number
  avatar: string
  username: string
  password: string
  desc: string
  roles: string[]
  buttons: string[]
  routes: string[]
  token: string
}
interface IUser {
  checkUser: IUserInfo
}
export interface IUserInfoReponse {
  code: number
  data: IUser
}
